import Vue from 'vue'
import router from './router'
import VueCookie from 'vue-cookie'
import App from '@/App'
import ElementUI from 'element-ui';
import httpRequest from '@/utils/httpRequest';
import 'element-ui/lib/theme-chalk/index.css';
import VueAwesomeSwiper from 'vue-awesome-swiper'
import '@/assets/styles/css/base.css'
import '@/assets/styles/css/border.css'
import '@/assets/styles/iconfont/iconfont.css'
import 'swiper/dist/css/swiper.css'
// import '@/assets/styles/css/base.css'
// import '@/assets/styles/css/border.css'
// import '@/assets/styles/iconfont/iconfont.css'
// import 'swiper/dist/css/swiper.css'
// import "quill/dist/quill.core.css";
// import "quill/dist/quill.snow.css";
// import "quill/dist/quill.bubble.css";
import store from '@/store'
import storage from '@/model/storage'

import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// 挂载全局
Vue.prototype.$http = httpRequest // ajax请求方法
Vue.use(VueCookie)
Vue.use(VueAwesomeSwiper)
// use
Vue.use(mavonEditor)
Vue.config.productionTip = false
Vue.use(ElementUI);




// /* v-md-editor 编辑器 start  */
// /* 1、v-md-editor 基础引用  */
// import VueMarkdownEditor from '@kangc/v-md-editor';
// import '@kangc/v-md-editor/lib/style/base-editor.css';
// import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
// import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
// import Prism from 'prismjs';
// VueMarkdownEditor.use(vuepressTheme, {
//   Prism,
// });
//
// /* 2、v-md-editor 代码块关键字高亮  */
// import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
// import '@kangc/v-md-editor/lib/theme/style/github.css';
// // 引入所有语言包
// import hljs from 'highlight.js';
// VueMarkdownEditor.use(githubTheme, {
//   Hljs: hljs,
// });
// Vue.use(VueMarkdownEditor);
//
// /* 3、v-md-editor 二次封装  */
// import mdEditor from '@/components/v-md-editor/index';
// Vue.component('MdEditor', mdEditor);
// /* v-md-editor 编辑器 end  */


// import VMdPreviewHtml from '@kangc/v-md-editor/lib/preview-html';
// import '@kangc/v-md-editor/lib/style/preview-html.css';
//
// // 引入使用主题的样式
// // import '@kangc/v-md-editor/lib/theme/style/vuepress';
//
// Vue.use(VMdPreviewHtml);

// 保存整站vuex本地储存初始状态
// window.SITE_CONFIG['storeState'] = cloneDeep(store.state)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
